const {formatParam,formatResult} = require('../api2Type');

const clz = require('./testController');


if(false){
  //测试{b?:{bDto?:string},data:string}//{result:string}
  console.log(JSON.stringify(formatParam(clz[0].params),null,2));
  console.log(JSON.stringify(formatResult(clz[0].result),null,2));
}
if(false){
  //测试{name?:string}//{result:{success?:boolean,errNo?:string,errMsg?:string,data?:boolean}}
  console.log(JSON.stringify(formatParam(clz[1].params),null,2));
  console.log(JSON.stringify(formatResult(clz[1].result),null,2));
}


if(true){
  //测试{map?:{[key:string]string},info:{param1?:number[],info?:{a:string}[]}}//{result:{success?:boolean,errNo?:string,errMsg?:string,data?:number[]}}"
  console.log(JSON.stringify(formatParam(clz[2].params),null,2));
  console.log(JSON.stringify(formatResult(clz[2].result),null,2));
}

// const test = require('../../dist/api/mvvmd/LoginController');
// console.log(JSON.stringify(formatParam(test[0].params),null,2));
// console.log(JSON.stringify(formatResult(clz[2].result),null,2));